home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
United Public Domain Gold 2
/
United Public Domain Gold 2.iso
/
utilities
/
pu093.dms
/
pu093.adf
/
sectorama.doc.pp
/
sectorama.doc
Wrap
Text File
|
1994-10-31
|
8KB
|
192 lines
**************************************************************************
*
* SECTORAMA V1.1
*
* Disk Sector Utility
*
* By Talin a.k.a. David Joiner
*
*
*
* IMPORTANT NOTE: This program is freely copyable and distributable,
*
* courtesy of David Joiner and MicroIllusions. It is NOT Public Domain.
*
* All copyrights are reserved by the author. You may give copies of this
*
* program to anyone you wish but you may not sell it.
*
*
*
**************************************************************************
*
This program is designed to help Amiga users recover lost or damaged
data from floppy or hard drives, or to repair a damaged volume.
***** The Obligatory Gratitude Clause *****
If you like this program and find it useful and worthwhile,
you can do one of several things.
1) You can do absolutely nothing. That's OK.
2) If you are a developer, you can send be something you
have done or are working on. I would like that very much.
3) If you are not a developer, but have lots of neat public
domain software, you could send me something neat. Don't send me anything
pirated
or I'll just erase it.
4) If all else fails send me a thank-you note or other
comments.
My Address is:
David Joiner
17428 Chatsworth
Granada Hills, CA 91344
Don't send me any money. I don't have time to run a
business, and it's really not worth the effort. I make enough money
writing other kinds of software (games, creative tools) and we just
aren't set up to market any kind of programming utilities (different kind
of tech support, etc).
The reason this program was written is because I had six
hard-drive failures over the course of four months (three different
units, two different manufacturers) and several times got myself into
situations where I just HAD to recover a file from a completely scrambled
disk. Since none of the then-current sector editors would work with hard
drives, SECTORAMA was born.
Note that this is not a cracking program. I don't even know
how to write one of those (disk interfacing was never one of my areas of
interest, I'm basically a graphics and user-interface type).
One other note: Sectorama requires the font TOPAZ-11. Make sure this is
in your current fonts directory or the program won't work.
**************************************************************************
*
* Version 1.1 Changes
*
**************************************************************************
*
Bugs Fixed:
1. All Updates were writing to lowest partition, regardless
of what partition you were editing. This really munged one of my files,
and I hope no one else has suffered the same fate. BAD, BAD David! It's
fixed now.
2. Blocks with keys higher that 7FFF hex weren't being read
in.
3. Open save file was attached to wrong menu item.
New Features (Because I have had yet another crash and needed them)
1. The "Repair Directory" menu item will re-build the hash
table in a directory block by searching through the entire disk for
blocks that 'claim' to be children of that directory. The revised block
is not written to the disk, nor is a new checksum computed. To write the
disk, use the 'K' (checksum) and 'U' (update) commands. You can also
hand-edit the block before writing out.
2. The Compute Hash Function menu item now has a Menu Key
Equivalent (Amiga-H).
3. There is a "Write all" menu option which writes all the
data from the current block to the save file, then goes to the next data
block and does the same, etc., until the chain ends.
**************************************************************************
*
* Version 1.0 Instructions
*
**************************************************************************
*
How to use Sectorama:
from the CLI, type:
Sec <device>
Where <device> is df0:, df1:, dh0:, hd0:, or whatever.
SECTORAMA
in it's current form should work with virtually any AmigaDOS device that
has a block size of 512 bytes.
The program will open up a high-res interlaced screen and
displays what it thinks is the root block for that device. You will
notice that one of the longwords in the block is highlighted. The
highlighting can be moved around with the mouse or arrow keys, allowing
you to select any of the longwords in the block.
Other information about the current block is displayed
around the various parts of the screen, including block number, file name
(if applicable), track/cylinder number, driver name, unit number, etc.
Not all of these fields are editable in the current version, and some
never will be.
At the bottom of the page shows 10 numbers labeled
'History'. This is a list of the last 10 sectors you looked at. In future
versions, you will be able to click on one of these and go to that
sector, but this feature is not implemented yet.
At the top right is a list of keyboard commands you can
enter:
J) Jump - read in the sector number indicated
by the contents of the currently selected longword.
R) Root - go to the root block.
P) Parent - go to this sector's parent, if possible.
C) Chain - go to the next sector on the hash chain, if
possible
X) Extention - go to this block's extention block, if
possible.
H) Header - go to the Header of this data block.
D) Data - Go to the next data block (if you are at the
header block of a file, it goes to the first data block).
L) Show the results of the last sector search (see below)
E) Edit, in hex, the contents of the sector. you may type
values in directly. ESCAPE key returns to normal mode.
A) ASCII Edit, same as Edit, but in ASCII rather than hex.
K) Compute new checksum for this block.
U) Update - write this block back to the disk. (note: must
be a CAPITAL 'U').
W) Write the data portion of this block to the save file (
see below)
Sector Search -
The Sector search pull-down menu allows you to search the
entire volume, sector by sector, looking for certain criteria. The
criteria canbe:
1) Filename with wildcards.
2) Parent block.
3) Header block.
Thus, you can search for all files that fit the pattern
"*.c", or all files that have a parent of 409. This is useful for finding
sectors that have become 'de-linked' from the AmigaDOS filing system.
The output of the search looks just like a regular sector
filled with sector keys - you can use the JUMP command to go to any of
those keys. The result of the search is not destroyed by this action and
can be brought up later using the option 'Last Search'.
Save File -
You can open a save file on another disk and
save the DATA PORTION of any sector onto it. Each write is appended onto
the last, thus if your file is TOTALLY trashed, you can at least get
parts of it back (the parts you can find).
Use the 'Open' pull down menu to open the file and the
'Close' to close it. The 'W' key writes the current sector to the save
file.
I have not tested this function, so be careful with it.
Verify and Repair -
These functions aren't finished yet.
Eventually they will perform DiskDoctor-like functions, except under
close user control.
Compute Hash Function -
This pull-down menu allows you to type a file or directory
name, and it will set the position of the highlighted region based on the
hash value of that name. Then, all you need do is hit 'J' (Jump) to go
to the hash chain containing that block, and hit 'C' (Chain) until you
get to the entry you want.
Good Luck!
____
/__ /-
//-////\/